package com.yunhe.rentcars.commons.util;

import org.apache.ibatis.session.SqlSession;

/**
 * Created by Administrator on 2017/11/10 0010.
 */
public class DaoFactory<T> {

    public T getDao(Class<T> tClass){
        SqlSession session = MybatisUtils.getSession();
        T mapper = session.getMapper(tClass);
        return mapper;
    }
}
